package dahua_design.model02;

import dahua_design.model01.User;

/**
 * @ClassName: Client
 * @Description: 客户端-工厂方法模式实现数据库变化
 * @Version: v1.0.0
 * @Author: tamir
 * @Date: 2022/06/01
 * Modification History:
 * Date             Author      Version     Description
 * -------------------------------------------------------------
 * 2022/06/01      tamir        v1.0.0      创建
 */
public class Client {
	public static void main(String[] args) {
		User user = new User();
		IFactory factory = new AccessFactory();
		IUser iu = factory.createUser();
		iu.insert(user);
		iu.getUser(1);
		System.out.println("数据库操作完成-----");
	}
}
